package com.weatherstation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weatherstation.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    
    @Select("SELECT * FROM permission WHERE code = #{code}")
    Permission findByCode(@Param("code") String code);
} 